package org.jeecg.modules.fund.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.fund.entity.UserhomeOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 基金订单表
 * @Author: jeecg-boot
 * @Date:   2024-08-29
 * @Version: V1.0
 */
public interface UserhomeOrderMapper extends BaseMapper<UserhomeOrder> {
    IPage<UserhomeOrder> getPageList(Page page, @Param(Constants.WRAPPER) Wrapper<UserhomeOrder> queryWrapper);

    UserhomeOrder getByIdLock(String orderId);

    UserhomeOrder getByOrderNumLock(String outTradeNo);

    @Select("select * from userhome_order where order_num=#{outTradeNo}")
    UserhomeOrder getByOrderNum(String outTradeNo);

    void operateStatus(String orderId,Integer status);
}
